
//
//  UIImageView+Cuntome.m
//  DreamOf
//
//  Created by 薛小刚 on 2018/9/9.
//  Copyright © 2018年 薛小刚. All rights reserved.
//

#import "UIImageView+Cuntome.h"

@implementation UIImageView (Cuntome)

- (void) setUsetType:(NSString *) userType {
    if ([userType isEqualToString:@"1"]) {
        self.hidden = YES;
    } else if ([userType isEqualToString:@"2"]) {
        self.hidden = NO;
        self.image = [UIImage imageNamed:@"B_personal_center_real_name_user_icon"];
    } else if ([userType isEqualToString:@"3"]) {
        self.hidden = NO;
        self.image = [UIImage imageNamed:@"B_personal_center_merchants_icon"];
    } else {
        self.hidden = YES;
    }
}

- (void)mainpageSetSex:(NSString *) sex {
    if ([sex isEqualToString:@"1"]) {
        self.hidden = NO;
        self.image = [UIImage imageNamed:@"B_activity_home_man"];
    } else if([sex isEqualToString:@"2"]) {
        self.hidden = NO;
        self.image = [UIImage imageNamed:@"B_activity_home_woman"];
    } else {
        self.hidden = YES;
    }
}

@end
